package com.ws.haungjia.controller;

import com.ws.haungjia.Bean.luxian;
import com.ws.haungjia.Service.LvxingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("xiadan")
public class Xiadan {
@Autowired
LvxingService lvxingService;
    @RequestMapping("/tiaozhuan")
    public String zengjia(int id, Model model) {
        luxian lushang = lvxingService.lushang(id);
        model.addAttribute("lunshan",lushang);
        return "WEB-INF/qianduan/Xiadan";
    }

}
